﻿@model IEnumerable<PessModel.ArchiveDisplayName>

@{
    ViewBag.Title = "Index";
}
<style type="text/css">
    .thAction {
        width:180px !important;
    }
</style>

<div id="m-title">
    <h2>活动：@ViewBag.ActivityName</h2>

    <div id="m-op">
    </div>
</div>

<fieldset>
    <table class="table">
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.PropertyName)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.DisplayName)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Visibility)
            </th>
            <th></th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.PropertyName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.DisplayName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Visibility)
                </td>
                <td class="thAction">
                    @Html.ActionLink("Edit", "Edit", new { activityID = item.ActivityID, propertyName = item.PropertyName }) 
                    @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) 
                    @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
                </td>
            </tr>
        }

    </table>
</fieldset>